package toolkit.tianshi.excelpoi.service;

import org.apache.poi.ss.usermodel.Sheet;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

import toolkit.tianshi.common.excelpoi.AnalyzeModel;

/**
 * @author zhangLin
 */
public interface ProduceService {

    /**
     * 生成标题
     * @param sheet sheet页
     * @param startLine 开始行
     * @param analyzeModel 模板
     * @param title 标题信息
     */
    public void produceTitle(Sheet sheet  , Integer startLine, AnalyzeModel analyzeModel, Map<String, String> title);

    /**
     * 生成数据内容
     * @param sheet sheet页
     * @param startLine 开始行
     * @param analyzeModel 模板
     * @param datas 数据
     * @return
     * @throws InvocationTargetException
     * @throws IllegalAccessException
     */
    public Integer produceExcel
            (Sheet sheet  , Integer startLine, AnalyzeModel analyzeModel, List<Object> datas) throws InvocationTargetException, IllegalAccessException;
}
